package com.guoliang.eduService.service;

import com.guoliang.commonUtils.CommonResult;
import com.guoliang.eduService.service.impl.VodClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-vod",fallback = VodClientFallBack.class)
@Component
public interface VodClient {
    @DeleteMapping("/eduvod/video/{id}")
    public CommonResult deleteVod(@RequestParam("id")String id);
    @DeleteMapping("/eduvod/video/deleteBatch")
    public CommonResult deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
